package cn.yj.cgs.dba.entity;


import cn.yj.cgs.dba.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2021-04-19 16:12:11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "tb_article")
public class Article extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * <br>
     */
    private String articleNo;


    /**
     * <br>
     */
    private String userCode;


    /**
     * <br>
     */
    private String content;

    /**
     * <br>
     */
    private String schoolName;

    private String city;

    /** 是否置顶 */
    private Boolean isTop;

    /** 1：删除 0：未删除 */
    @TableLogic
    private Boolean deleted;

    /** 1：匿名 0：正常 */
    private Boolean isAnon;

    private Long agreeCount;
    private Long viewCount;
    private Long commentCount;

    @TableField(exist = false)
    private Boolean isAdmin;

    private String newLocation;
    private String status;
}

